<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">

        <h1 v-show="isShow">老网抑云了</h1>
        <h2 v-show="num>3">生不出人，我很抱歉</h2>
        <button @click="changeShow">网抑云开关</button>
        <button @click="changeNum">要来了，要来了</button>
    </div>
</body>
<script src="../vue.js"></script>
<script>
    let app = new Vue({

        el: "#app",
        data: {
            isShow: true,
            num: 0
        },

        methods: {

            changeShow: function () {
                this.isShow = !this.isShow;
            },

            changeNum: function () {
                this.num++;
            }


        }


    })
</script>

</html>